package admin;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;

public class Role extends Model<Role> {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final Role dao = new Role();
	
	/**
	 * 根据管理员
	 * 获取所有角色信息
	 * @return
	 */
	public List<Role> findRoleByAdminid(int adminid){
		return dao.find("select * from role where adminid=?",adminid);
	}


}
